package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 记录点赞人信息对象 like_table
 * 
 * @author ruoyi
 * @date 2024-03-08
 */
public class LikeTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞ID */
    private Long likeId;

    /** 内容ID */
    @Excel(name = "内容ID")
    private Long contentId;

    /** 标题 */
    @Excel(name = "contentTitle")
    private String contentTitle;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 点赞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:SS")
    private Date likeTime;

    public void setLikeId(Long likeId) 
    {
        this.likeId = likeId;
    }

    public Long getLikeId() 
    {
        return likeId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLikeTime(Date likeTime) 
    {
        this.likeTime = likeTime;
    }

    public Date getLikeTime() 
    {
        return likeTime;
    }

    public String getContentTitle() {
        return contentTitle;
    }

    public void setContentTitle(String contentTitle) {
        this.contentTitle = contentTitle;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "LikeTable{" +
                "likeId=" + likeId +
                ", contentId=" + contentId +
                ", contentTitle='" + contentTitle + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", likeTime=" + likeTime +
                '}';
    }
}
